package com.commerceerp.system.service;

import com.commerceerp.system.entity.OrderInfo;
import com.commerceerp.system.entity.OrderVo;
import com.commerceerp.system.mapper.OrderMapper;
import com.commerceerp.system.util.ApiResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface OrderService {

    List<Map> getAllOrderInfo(String userId,String orderChannel,String storeName,String orderId,String addressCountry,
                              String orderStatus,Integer orderDownTimePX,
                              Integer orderSkuPX,Integer orderMoneyPX,String beginTime,String endTime);

    Integer updOrderStatus(String orderId,String orderStatus);

    Map<String,Object> getOrderDetailInfo(String orderId);

    Integer  updOrderAddressInfo(OrderInfo orderInfo);

    ApiResult orderCount(String userId);

    Integer saveLogisticInfoByOrderId(String logisticName,String logisticPhone,String logisticInfo,
                                      String logisticRemark,String logisticOrderId,String logisticStatus);

}
